import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ELIcons from '@element-plus/icons-vue'

// 完整导入 UI 组件库
import VxeUI from 'vxe-pc-ui'
import 'vxe-pc-ui/lib/style.css'
// ...

// 完整导入 表格库
import VxeUITable from 'vxe-table'
import 'vxe-table/lib/style.css'

const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
//图标全局注册
for (const [key, component] of Object.entries(ELIcons)) {
  app.component(key, component)
}

app.use(router)
app.use(ElementPlus)
app.use(VxeUI)
app.use(VxeUITable)
app.mount('#app')
